// $Id: MyDataNode.java,v 1.2 2003/08/02 19:20:04 survey Exp $
package org.medbeans.modules.patients;

import org.openide.loaders.*;
import org.openide.nodes.*;
//import org.openide.util.NbBundle;

/** A node to represent this object.
 *
 * @author  builder
 */
public class MyDataNode extends DataNode {

    public MyDataNode(MyDataObject obj) {
        this (obj, Children.LEAF);
    }

    public MyDataNode(MyDataObject obj, Children ch) {
        super (obj, ch);
        setIconBase("/org/medbeans/modules/patients/MyDataIcon");
    }

    protected MyDataObject getMyDataObject() {
        return (MyDataObject) getDataObject();
    }

    /* Example of adding Executor / Debugger / Arguments to node:
    protected Sheet createSheet () {
	Sheet sheet = super.createSheet ();
	Sheet.Set set = sheet.get (ExecSupport.PROP_EXECUTION);
	if (set == null) {
	    set = new Sheet.Set ();
	    set.setName (ExecSupport.PROP_EXECUTION);
            set.setDisplayName (NbBundle.getMessage (MyDataNode.class, "LBL_DataNode_exec_sheet"));
            set.setShortDescription (NbBundle.getMessage (MyDataNode.class, "HINT_DataNode_exec_sheet"));
	}
	((ExecSupport) getCookie (ExecSupport.class)).addProperties (set);
	// Maybe:
	((CompilerSupport) getCookie (CompilerSupport.class)).addProperties (set);
	sheet.put (set);
	return sheet;
    }
    */

    /*
    public SystemAction getDefaultAction () {
	return SystemAction.get (MyFavoriteAction.class);
    }
    */

}
